package javaBase.javaLang;

import javaBase.javaIterator.TestIterator;

/**
 * Created by Administrator on 2017/4/12 0012.
 */
public class TestClass {
    public static void testClass() {
        String s = "javaBase.javaIterator.TestIterator";
        try {
            TestIterator testIterator = (TestIterator)Class.forName(s).newInstance();
            testIterator.testIterator();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        testClass();
    }

}
